/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    float height = 1.72F;
    int weight = 70;

    // 计算BMI值，赋给变量res
    float res = weight / (height * height);
    printf("BMI=%f\n", res);

    return 0;
}

/*
output:
BMI=23.661438
*/